package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.common.dto.SpecParamDTO;
import com.leyou.common.dto.SpuDTO;
import com.leyou.item.entity.Spu;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> queryByPage(Integer page, Integer rows, Boolean saleable, Long categoryId, Long brandId, Long id);

    void updateSable(Long id, Boolean saleable);

    List<SpecParamDTO> querySpecValues(Long id, Boolean searching);

    SpuDTO queryGoods(Long spuId);

    SpuDTO querySpuBuId(Long id);

    void saveGoods(SpuDTO spuDTO);

    void updateGoods(SpuDTO spuDTO);
}